#if !defined(AFX_BANKVIEW_H__11D62148_F431_4F66_8E36_9D7ADF2BEC18__INCLUDED_)
#define AFX_BANKVIEW_H__11D62148_F431_4F66_8E36_9D7ADF2BEC18__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BankView.h : header file
//

#include "financedef.h"	// Added by ClassView

#include "ListEditView.h"
#include "SOURCE\FlatHeaderCtrl.h"	// Added by ClassView


/////////////////////////////////////////////////////////////////////////////
// CBankView view

class CBankView : public CListEditView
{
protected:
	CBankView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CBankView)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBankView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CBankView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	CImageList m_imagelist;
	CBitmap m_bitmap;
	CFlatHeaderCtrl m_FlatHeader;
	//{{AFX_MSG(CBankView)
	afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnColumnclick(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BANKORDERCOLUMN m_ordercolumn;
	DISPORDER m_disporder;
	void ShowAccountRec(LONG lAbsIdx);
	void OpenAccount();
	void OnRefresh();
	_RecordsetPtr m_pRecordset;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BANKVIEW_H__11D62148_F431_4F66_8E36_9D7ADF2BEC18__INCLUDED_)
